window = gdk_win32_handle_table_lookup (hwnd);
if (window != NULL &&
- GDK_WINDOW_TYPE (window) != GDK_WINDOW_ROOT &&
GDK_WINDOW_TYPE (window) != GDK_WINDOW_FOREIGN)
break;
GList *list1, *list2;
tmp = win1;
- while (tmp != NULL && tmp->window_type != GDK_WINDOW_ROOT)
+ while (tmp != NULL)
{
path1 = g_list_prepend (path1, tmp);
tmp = get_native_parent (tmp);
}
tmp = win2;
- while (tmp != NULL && tmp->window_type != GDK_WINDOW_ROOT)
+ while (tmp != NULL)
{
path2 = g_list_prepend (path2, tmp);
tmp = get_native_parent (tmp);
last = a;
win = get_native_parent (a);
- while (win != c && win->window_type != GDK_WINDOW_ROOT)
+ while (win != c && win != NULL)
{
send_crossing_event (display,
win, GDK_LEAVE_NOTIFY,
{
path = NULL;
win = get_native_parent (b);
- while (win != c && win->window_type != GDK_WINDOW_ROOT)
+ while (win != c && win != NULL)
{
path = g_list_prepend (path, win);
win = get_native_parent (win);
{
g_return_if_fail (GDK_IS_WINDOW (window));
- if (window->input_only || window->destroyed ||
- (window->window_type != GDK_WINDOW_ROOT &&
- !GDK_WINDOW_IS_MAPPED (window)))
+ if (window->input_only || window->destroyed || !GDK_WINDOW_IS_MAPPED (window))
return;
if (_gdk_window_has_impl (window) &&
GDK_WINDOW_IS_WIN32 (window) &&
- window->window_type != GDK_WINDOW_ROOT &&
window->window_type != GDK_WINDOW_FOREIGN)
tmp_unset_bg (window);
void
_gdk_win32_window_tmp_unset_parent_bg (GdkWindow *window)
{
- if (GDK_WINDOW_TYPE (window->parent) == GDK_WINDOW_ROOT)
+ if (window->parent == NULL)
return;
window = _gdk_window_get_impl_window (window->parent);
{
g_return_if_fail (GDK_IS_WINDOW (window));
- if (window->input_only || window->destroyed ||
- (window->window_type != GDK_WINDOW_ROOT && !GDK_WINDOW_IS_MAPPED (window)))
+ if (window->input_only || window->destroyed || !GDK_WINDOW_IS_MAPPED (window))
return;
if (_gdk_window_has_impl (window) &&
GDK_WINDOW_IS_WIN32 (window) &&
- window->window_type != GDK_WINDOW_ROOT &&
window->window_type != GDK_WINDOW_FOREIGN)
{
tmp_reset_bg (window);
switch (window->window_type)
{
case GDK_WINDOW_TOPLEVEL:
- if (window->parent && GDK_WINDOW_TYPE (window->parent) != GDK_WINDOW_ROOT)
+ if (window->parent)
{
/* The common code warns for this case. */
hparent = GetDesktopWindow ();